import request from "../utils/request";

// 获取账号信息
export const getUserInfo = () => {
  return request({
    method: "get",
    url: '/user/account'
  })
}

// 获取用户歌单
export const getUserPlaylist = (uid:any) => {
  return request({
    method: "get",
    url: "/user/playlist",
    params: {
      uid: uid
    }
  })
}

// 退出登录
export const logOut = () =>{
  return request({
    method: "post",
    url:"/logout",
  })
}